<div class="voice-chat-card">
  <div class="voice-chat-card-header">
    <img class="avatar">
    <div class="username">User name</div>
    <div class="status"></div>
  </div>
  <div class="voice-chat-card-body">

    <div class="audio-container">
      <audio controls="">
        <source type="audio/mp3" src="">
        Your browser does not support the audio element.
      </audio>
    </div>
  </div>
</div>

<style>
/* From Uiverse.io by ahmed150up - Tags: card */
.voice-chat-card {
  width: 300px;
  margin: 20px auto;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 2px 2px 10px #ccc;
  padding: 10px;
  background-color: #e8e8e8;
}

.voice-chat-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
  color: black;
  background-color: #333;
}

.username {
  margin: 0;
  font-size: 18px;
  color: black;
}

.status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: green;
  margin-left: 10px;
}

.voice-chat-card-body {
  padding: 10px;
}

.status-text {
  font-size: 14px;
  margin-bottom: 10px;
}

.audio-container {
  display: flex;
  align-items: center;
}

audio {
  width: 100%;
}

</style>
